package com.yiyukongjian.house.utils;

import java.util.ArrayList;

import android.view.inputmethod.EditorInfo;

public final class HouseInfoUtils {
    
	public static String[] TITLESFORHOUSEINFO = new String[]
	{ "房屋地址", "房主姓名", "证件号码", "房主移动电话"};

	public static String[] TITLESFORRENTINFO = new String[]
	{ "承租人姓名", "承租人身份证号码", "承租人联系电话", "起租日期", "停租日期"};

	public static String[] TITLESFORRENTERINFO = new String[]
	{ "同住人姓名", "同住人身份证号码", "同住人联系电话"};
	
	private static int[] TYPES = new int[]
			{EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE,EditorInfo.TYPE_CLASS_TEXT,EditorInfo.TYPE_CLASS_TEXT,EditorInfo.TYPE_CLASS_TEXT,
		     EditorInfo.TYPE_CLASS_TEXT,EditorInfo.TYPE_CLASS_TEXT};
    public static final ArrayList getHouseAddList()
    {
    	ArrayList list = new ArrayList();
    	list.add("房屋信息");
    	for(int i = 0; i<TITLESFORHOUSEINFO.length; i++)
    	{
    		ShowItem item = new ShowItem();
    		item.setItemLabel(TITLESFORHOUSEINFO[i]);
    		item.setInputType(TYPES[i]);
    		item.setHint("");
    		list.add(item);
    	}
    	list.add("租赁信息");
    	for(int i = 0; i<TITLESFORRENTINFO.length; i++)
    	{
    		ShowItem item = new ShowItem();
    		item.setItemLabel(TITLESFORRENTINFO[i]);
    		item.setInputType(TYPES[i]);
    		item.setHint("");
    		list.add(item);
    	}
    	list.add("租赁信息");
    	for(int i = 0; i<TITLESFORRENTERINFO.length; i++)
    	{
    		ShowItem item = new ShowItem();
    		item.setItemLabel(TITLESFORRENTERINFO[i]);
    		item.setInputType(TYPES[i]);
    		item.setHint("");
    		list.add(item);
    	}
    	return list;
    }
}
